home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 7 / 007.d81 / pps #15 < prev    next >
Text File  |  2022-08-26  |  1KB  |  69 lines

  1.  
  2.  PEEKs, POKEs, and SYSes -- Part 15
  3.  
  4.            by Jimmy Weiler
  5.  
  6. ======================================
  7. Location:217-242 Hexadecimal: $00d9-f2
  8. Official Label: LDTB1        Type: RAM
  9. Useful BASIC commands: PEEK, POKE
  10. ======================================
  11.  
  12.  
  13.   LDTB1 is the screen line link table.
  14.  
  15. It keeps track of which screen lines
  16.  
  17. are logically connected to their
  18.  
  19. neighbors.
  20.  
  21.  
  22.   When you LIST a program with long
  23.  
  24. lines or PRINT anything longer than 40
  25.  
  26. characters, two adjacent lines are
  27.  
  28. always logically 'connected' and are
  29.  
  30. used as one line until you disconnect
  31.  
  32. them.  The linking of lines is vital
  33.  
  34. when you're programming, but annoying
  35.  
  36. when you are trying to format a screen
  37.  
  38. of text.
  39.  
  40.  
  41.  
  42.   You can tell when your lines are
  43.  
  44. linked because carriage returns will
  45.  
  46. tend to move down two physical lines
  47.  
  48. instead of just one.
  49.  
  50.  
  51.   If you want to disconnect all the
  52.  
  53. lines of the screen, all you need to
  54.  
  55. do is run this line of code:
  56.  
  57.  
  58. 1000 FOR L = 217 to 242: POKE L,128 OR
  59.      PEEK (L): NEXT
  60.  
  61.  
  62.   Be careful what you poke into LDTB1.
  63.  
  64. Inappropriate values can scramble your
  65.  
  66. screen completely.
  67.  
  68. --------------------------------------
  69.